package gui.mainGUIs;

import gui.designComponents.DesignConstants;
import gui.designComponents.TMTPanel;

import java.awt.GridLayout;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

import app.Controller;
import app.Model;
import definitions.Constants;

/**
 * Header showing the logo
 * 
 * @author MK
 * 
 */
public class HeaderPanel extends TMTPanel {

	public HeaderPanel(Model model, Controller controller) {
		setLayout(new GridLayout(1, 0));

		Icon logoIcon = new ImageIcon(DesignConstants.LOGOPATH);

		JLabel logoLabel = new JLabel(logoIcon);
		logoLabel.setName(Constants.LOGO_PANEL);

		logoLabel.addMouseListener(controller);
		add(logoLabel);
	}
}